<?php
	$id = $_GET['id'];
	error_reporting(E_ERROR | E_WARNING | E_PARSE);
	$conn = mysql_connect("127.0.0.1","root","");
	if (!$conn) {
		echo "链接错误";
		exit();
	}
	if (!mysql_query("use messageboard",$conn)) {
		echo "数据库链接失败";
		exit();
	}
	mysql_query("set names utf8",$conn);
	mysql_query("delete from data where id = $id");//删除MySQL中数据
	mysql_query($sql,$conn);
	header("Location:index.php");
?>
?>